﻿////using System;
////using System.Collections.Concurrent;
////using System.Collections.Generic;
////using System.Text;

////namespace WhatCatch.Core
////{
////    public class DataContainer_ListCon
////    {
////        ConcurrentBag<string> listUrl;
////        ConcurrentBag<string> detailUrl;


////        /// <summary>
////        /// 任务队列
////        /// </summary>
////        Queue<string> queueTask;

////        public DataContainer_ListCon()
////        {
////            listUrl =new ConcurrentBag<string>();
////            detailUrl =new ConcurrentBag<string>();

////            queueTask = new Queue<string>();
////        }

////        public bool IsExistInListUrl(string url)
////        {
////            //跳过重复
////                if (listUrl.Any(c => c == url))
////                    return true;
////            return false;
////        }

////        public void AddListUrl(string url)
////        {
////                listUrl.Add(url);
////        }

////        public bool IsExistInDetailUrl(string url)
////        {
////                if (detailUrl.Any(c => c == url))
////                    return true;
////            return false;
////        }

////        public void AddDetailUrl(string url)
////        {
////                detailUrl.Add(url);
////        }

////        public void EnqueueTask(string url)
////        {
////                queueTask.Enqueue(url);
////        }

////        public string GetOneTask()
////        {
////            string url = "";
////                if (queueTask.TryDequeue(out url) == false)
////                {
////                    return null;
////                }
////            return url;
////        }
////    }
////}
